package org.jeecg.modules.online.cgform.model;

import org.jeecg.common.util.oConvertUtils;

/* renamed from: org.jeecg.modules.online.cgform.model.h */
/* loaded from: hibernate-re-3.7.1-RC.jar:org/jeecg/modules/online/cgform/model/h.class */
public class SqlOrder {

    /* renamed from: a */
    public static final String f439a = "asc";

    /* renamed from: b */
    public static final String f440b = "desc";

    /* renamed from: c */
    public static final String f441c = " ORDER BY ";

    /* renamed from: d */
    public static final String f442d = "ID";

    /* renamed from: e */
    private String f443e;

    /* renamed from: f */
    private String f444f;

    /* renamed from: g */
    private String f445g;

    /* renamed from: a */
    public static SqlOrder m263a() {
        return m262a("");
    }

    /* renamed from: a */
    public static SqlOrder m262a(String str) {
        SqlOrder sqlOrder = new SqlOrder("ID");
        sqlOrder.setAlias(str);
        return sqlOrder;
    }

    public String getRealSql() {
        String str;
        String str2 = this.f445g + oConvertUtils.camelToUnderline(this.f443e);
        if ("asc".equals(this.f444f)) {
            str = str2 + " asc";
        } else {
            str = str2 + " desc";
        }
        return str;
    }

    public SqlOrder() {
    }

    public SqlOrder(String str, String str2) {
        this.f443e = str;
        this.f444f = str2;
        this.f445g = "";
    }

    public SqlOrder(String str) {
        this.f444f = "desc";
        this.f443e = str;
        this.f445g = "";
    }

    public String getColumn() {
        return this.f443e;
    }

    public void setColumn(String column) {
        this.f443e = column;
    }

    public String getRule() {
        return this.f444f;
    }

    public void setRule(String rule) {
        this.f444f = rule;
    }

    public String getAlias() {
        return this.f445g;
    }

    public void setAlias(String alias) {
        this.f445g = alias;
    }
}
